#{extends 'admin.html' /}
#{set title:'Administration : Edition d\'un Groupe' /}
<article class="module width_full">
    <header><h3 class="tabs_involved">Edition du Groupe : ${entity.name}</h3>
        <ul class="tabs">
            <li><a href="@{Groups.list}">Annuler</a></li>
        </ul>
    </header>
    #{form @Groups.update(), id:'createForm'}
        <div class="module_content">
            <fieldset>
                <label>Nom : </label>
                <input type="text" name="entity.name" value="${entity?.name}"/>
                <span class="error">${errors.forKey('entity.name')}</span>
            </fieldset>
            <fieldset>
                <label>Description du Groupe : </label>
                <input type="text" name="entity.description" value="${entity?.description}"/>
                <span class="error">${errors.forKey('entity.description')}</span>
            </fieldset>
			<input type="hidden" name="entity.id" value="${entity?.id}"/>
            <footer>
            <div class="submit_link">
                <input type="submit" name="submit" value="Enregistrer" class="alt_btn"/>
            </div>
        </footer>
        #{/form}
    </div>
</article>

